<?php

namespace App\Controllers;

use LowCode\Router;

class Menu
{
    public function all()
    {
        $menus = [
            Router::make("概览","Dashboard","/","BasicLayout")->children([
                Router::make("控制台","Home","/home","PageLayout")->icon("mdi:home")->affixTab(true),
                Router::make("分析页","Analytics","/analytics","/dashboard/analytics/index")->icon("lucide:area-chart"),
                Router::make("工作台","Workspace","/workspace","/dashboard/workspace/index")->icon("carbon:workspace"),
            ]),
            Router::make("演示","AccessDemos","/naive","BasicLayout")->children([
                Router::make("Naive","NaiveDemos","/naive/index","/demos/naive/index")->icon("lucide:area-chart"),
                Router::make("Table","TableDemos","/naive/table","/demos/table/index")->icon("mdi:shield-key-outline"),
            ]),
        ];
        return response()->result($menus);
    }
}